package com.itheima.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.SmsHomeRecommendProduct;
import com.itheima.vo.PageResult;

import java.util.List;

/**
 * @author lenovo
 * @description 针对表【sms_home_recommend_product(人气推荐商品表)】的数据库操作Service
 * @createDate 2022-10-11 14:26:18
 */
public interface SmsHomeRecommendProductApi {

    //添加首页推荐
    void recommendProductCreate(SmsHomeRecommendProduct recommendProduct);

    //批量删除
    boolean deleteByIds(List<Long> idList);

    //分页查询推荐品牌
    PageResult recommendProductList(Integer pageNum, Integer pageSize, String productName, Integer recommendStatus);

    //批量修改状态
    boolean updateRecommendStatus(List<Long> idList, Integer recommendStatus);

    //根据id查询人气推荐实例
    SmsHomeRecommendProduct findById(Long id);

    //修改排序
    void updateSortById(SmsHomeRecommendProduct recommendProduct);

}
